<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<link href="../css/dtree.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scripts/dtreeAuth.js"></script>
<style type="text/css">
   .art_ul {}
   .art_ul li{padding:2px;display:block;border:1px solid red;overflow: hidden;border:1px solid #666;}
   .art_ul li img{width:120px;height:88px;}
   .art_ul div{float:left;padding:2px;}
   .content_main table td {text-align: left;}
</style>

</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">日常管理->添加热词信息</div>
    <div class="main_soso">
    	
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;">热词基本信息 </th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <form action="/daily/su_hot_push.shtml" name="form01" method="post" enctype="multipart/form-data">
    <input name="id" value="${push.id}"  type="hidden"/>
    <input name="push.pushSid" value="${push.pushSid}"  type="hidden"/>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <tr>
        <td width="15%" style="border-left:none" align="right">热推名称：</td>
        <td width=""><input name="push.pushName" type="text" value="${push.pushName}" style="width:240px;" class="inputwidth01" id="push.pushName" maxlength="30" /> <span style="color:red;">*</span>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">热推类型：</td>
        <td width="">
         <app:code_name code="${push.pushType}"></app:code_name>
        <input name="push.pushType" value="${push.pushType}" type="hidden" />
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">图片文件：</td>
        <td width="">
        <input name="push.imgPath" readonly="readonly" value="${push.imgPath}" proxy="uploadDiv"  type="hidden" size="8"  class="inputwidth01"  id="push.imgPath"/> 
               <div id="uploadDiv" class="uploadDiv">
		                 <a href="#" class="fbtn">选择文件</a><input name="resource" value="" id="uploadFile" size="1" class="ufile" type="file"/>
		                 <div class="rate" id="rate" style="display:none;"></div>
		       </div>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">android视频：</td>
        <td width=""><input name="push.androidPath"value="${push.androidPath}" type="text" size="8" style="width:320px;" class="inputwidth01" maxlength="512" id="push.androidPath"/> <!--  <a href="javascript:wo('push.androidPath');">测试视频</a> --></td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">iOS视频：</td>
        <td width=""><input name="push.iosPath"  value="${push.iosPath}" type="text" size="8" style="width:320px;" class="inputwidth01" maxlength="512" id="push.iosPath" /> <!--   <a href="javascript:wo('push.iosPath');">测试视频</a> --></td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">状态：</td>
        <td width="">
                    显示：<input type="radio" name="push.state" value="1" <c:if test="${push.state!='0'}">checked="checked" </c:if> />&nbsp;&nbsp;不显示：<input type="radio" name="push.state" value="0" <c:if test="${push.state=='0'}">checked="checked" </c:if> /> &nbsp;        </td>
      </tr>
    </table>
    </form>
  </div>
  <div class="lapel" style="background:#FFFFFF;"><span><input name="" type="button" class="input01" value="保存" onclick="validate.submit();"/>&nbsp;
  <input name="" type="button" class="input01" value="返回热推列表" onclick="javascript:document.location='/daily/search_hot_push.shtml'"/></span></div>
  
</div>
  <iframe  style="display:none" src="about:blank" name="ifrComposeAttachUpload"></iframe>

</body>
</html>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript" src="/scripts/calendar.js"></script>
<script type="text/javascript" src="/scripts/wb.js"></script>
<script type="text/javascript" src="/scripts/page.js"></script>
<script type="text/javascript" src="/scripts/xhr.js"></script>
<script type="text/javascript" src="/scripts/wooboo.js"></script>
<script type="text/javascript" src="/system/config_js.shtml"></script>
<script type="text/javascript">

  new FILE({div:"uploadDiv",input:"push.imgPath",form:"resourceForm",fileinput:"uploadFile",rate:"rate",ftp:Config["image.cache"]});
validate.addvalidte(document.form01,{
        rules:{
           "push.pushName":{checkNull:true},
           "push.imgPath":{checkNull:true,suffix:/.jpg|.png|.gif|.bmp/i}
           },
	    message:{
	    }
	    });

    function wo(id){
    	var o = util.$(id);
    	if(o){
    		winOpen(o.value,"");
    	}
    }

	function winOpen(flash,title){
	    var wininfo = "width=520,height=580,resizable=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,left=20";
	    var pop_win = window.open("","nw",wininfo);
	    pop_win.resizeTo(520,580);
	    pop_win.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
	    pop_win.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml">');
	    pop_win.document.writeln('<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>视频播放--'+(title||'')+'</title><style type="text/css">');
	    pop_win.document.writeln('* { margin:0px; padding:0px} </style></head>');
	    pop_win.document.writeln('<body>'+flash+'</body>');
	    pop_win.document.close();
    }
	
</script>